<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<% Date nowDate = new Date(); request.setAttribute("nowDate", nowDate); %>
<!DOCTYPE HTML>
<html>
  <head>
     <title>
            商城管理
	</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css"  />
 	<link href="${pageContext.request.contextPath}/css/font-awesome.min.css" rel="stylesheet" type="text/css"> 
</head>
<script src="${pageContext.request.contextPath}/js/jquery-1.6.3.js"></script>
 <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e){
  $("#limain1").toggle(function(){
 			$("#li1").css("display","block");
 		},function(){
 			$("#li1").css("display","none");
 		});
   $("#limain2").toggle(function(){
 			$("#li2").css("display","block");
 		},function(){
 			$("#li2").css("display","none");
 		});
    $("#limain3").toggle(function(){
 			$("#li3").css("display","block");
 		},function(){
 			$("#li3").css("display","none");
 		});
     $("#limain4").toggle(function(){
 			$("#li4").css("display","block");
 		},function(){
 			$("#li4").css("display","none");
 		});
      $("#limain5").toggle(function(){
 			$("#li5").css("display","block");
 		},function(){
 			$("#li5").css("display","none");
 		});
 /* var B = setInterval(function(){
	var url="${pageContext.request.contextPath}/OrderController/listOrderAjax.action";
	$.get(url,{},function(data){
		if(data.bl!=null){
			$("#neworder").html(
			"<EMBED src='${pageContext.request.contextPath}/file/mp3/noticemp3.mp3'  type=audio/mpeg loop=false autostart='true' hidden=ture></EMBED>");
		}
	});
 },60000); */


});
</script>
  <body >
    	<div  style="padding-top:5px;margin: auto; border-bottom: 1px solid;background: #FF7F00">
        <div class="row">
         <div class="col-md-2 col-md-offset-1">
			<span style="color:#fff">
	<fmt:formatDate value="${nowDate}" pattern="yyyy年MM月dd日 HH:mm:ss"/>
			</span>
         </div>
      
         <div class="col-md-2">
			<span style="color:#fff">欢迎您</span>
			<span style="color:blue">${adminuser.name}</span>
         </div>
          <div class="col-md-1 col-md-offset-3">
          <a href="${pageContext.request.contextPath}" style="color: #fff" >首页<span class="fa fa-home">
          </span></a></div>
          <div class="col-md-2 col-md-offset-1" style="padding-left: 50px"> 
          <a href="${pageContext.request.contextPath}/AdminUserContorller/outLogin.action" style="color: #fff">退出登录
			<span class="fa fa-window-close-o"></span>
          </a>
          </div>
        </div>
      </div>
     <div style="background: fff;width: 1100px;height: 138px;">
     <img src="${pageContext.request.contextPath}/img/juninglogo.jpg" style="width:138px;height: 138px;margin-left:100px">
			<img src="${pageContext.request.contextPath}/img/sysTitle.png" alt="">
     </div>
      <div style="height: 500px;width: 10%;float: left;margin-left:5px">
			<ul id="ul"> 
				<li class="limain" id="limain1">商品管理
					<span class="fa fa-angle-double-down"></span>
				</li>
					<div id="li1" class="divli">
						<ul>
								<li><a href="${pageContext.request.contextPath}/addCommodity.jsp" target="iframe" style="color:#000">添加商品</a></li>
								<li>
								<a href="${pageContext.request.contextPath}/commodity/listCommodity.action" target="iframe" style="color:#000">
								删除商品
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/commodity/listShelves.action?shelves=1" target="iframe" style="color:#000">
								上下架管理
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/commodity/listAll.action?kill=kill" target="iframe" style="color:#000">
								创建秒杀
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/SeckillController/sysList.action" target="iframe" style="color:#000">
								秒杀管理
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/commodity/listAll.action" target="iframe" style="color:#000">
								全部商品
								</a>
								</li>
						</ul>	
					</div>
				<li class="limain" id="limain2">订单管理
					<span class="fa fa-angle-double-down"></span>
				</li>
					<div id="li2" class="divli">
						<ul>
								<li><a href="${pageContext.request.contextPath}/OrderController/listOrder.action?state=0" target="iframe" style="color:#000">
								新的订单
								</a></li>
								<li>
								<a href="${pageContext.request.contextPath}/OrderController/listOrder.action?state=1" target="iframe" style="color:#000">
								未发货订单
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/OrderController/listOrder.action?state=2" target="iframe" style="color:#000">
								已发货订单
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/OrderController/allOrder.action" target="iframe" style="color:#000">
								全部订单
								</a>
								</li>
						</ul>	
					</div>
				<li class="limain" id="limain3">用户管理
					<span class="fa fa-angle-double-down"></span>
				</li>
					<div id="li3" class="divli">
						<ul>
								<li>今日登陆用户</li>
								<li>今日购买用户</li>
								<li>全部用户</li>
						</ul>	
					</div>
				<li class="limain" id="limain4">网站管理
					<span class="fa fa-angle-double-down"></span>
				</li>
					<div id="li4" class="divli">
						<ul>
								<li>首页广告管理</li>
								<li>更多敬请期待</li>
						</ul>	
					</div>

				<li class="limain" id="limain5">系统管理
					<span class="fa fa-angle-double-down"></span>
				</li>
					<div id="li5" class="divli">
						<ul>
								<li>
								<a href="${pageContext.request.contextPath}/adminAdd.jsp" target="iframe" style="color:#000">
								添加管理账号
								</a>
								</li>
								<li>
								<a href="${pageContext.request.contextPath}/adminUpdate.jsp" target="iframe" style="color:#000">
								修改管理密码
								</a>
								</li>
						</ul>	
					</div>
			</ul>
      </div>
	<div style="width: 89%;border:1px solid #C1C1C1;float: left;margin-left: 2px">
			<iframe src="${pageContext.request.contextPath}/OrderController/listOrder.action?state=0"  id="iframe" name="iframe"  scrolling="no" 
			style="width: 100%;height: 1000px;border:none">
			</iframe>
      </div>
  </body>
 <style>
	#ul{
		list-style: none;padding: 0px
	}
	.limain{
		color:#fff;border-bottom:1px solid #fff;width: 100% ;text-align: center;line-height: 20px;font-size: 16px;
		height: 30px;background: #FF7F00;padding-top:5px
	}
	.divli li{
		color:#000;border-bottom:1px solid #CDC8B1;width: 100% ;text-align: center;font-size: 13px;background:#FFEC8B;
		height: 20px
	}
	.divli li:hover{
		background: #FFA500;cursor: pointer;
	}
	.divli ul{
		list-style: none;padding: 0px
	}
	.limain:hover{
		background: #FF6347;cursor: pointer;
	}
	.divli{
		display: none;
	}

   </style>
</html>